package com.asset.dispoal.business.repayment.domain.db.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 案件还款记录表(BsCaseRepaymentLogs)实体类
 *
 * @author yf
 * @since 2022-09-30 09:51:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BsCaseRepaymentLogs implements Serializable {
    private static final long serialVersionUID = -62907754198278874L;
    /**
     * id
     */
    private String id;
    /**
     * 案件id
     */
    private String caseId;
    /**
     * 还款id(和解对应减免预设记录id, 调解对应相应的分期id)
     */
    private String repaymentId;
    /**
     * 本次还款本金
     */
    private BigDecimal currentRepaymentPrincipal;
    /**
     * 本次还款利息
     */
    private BigDecimal currentRepaymentInterest;
    /**
     * 本次还款罚息
     */
    private BigDecimal currentRepaymentPenalty;
    /**
     * 本次还款诉讼费
     */
    private BigDecimal currentRepaymentLitigationAmount;
    /**
     * 本次还款保全费
     */
    private BigDecimal currentRepaymentPreservationAmount;
    /**
     * 还款时间
     */
    private Date repaymentTime;
    /**
     * 还款文件id集合
     */
    private String repaymentFileIds;
    /**
     * 还款时案件状态
     */
    private String repaymentCaseState;
    /**
     * 还款类型  内部还款  外部还款
     */
    private String repaymentType;
    /**
     * 创建人
     */
    private String createUserId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 审核人id
     */
    private String approverId;
    /**
     * 审核人名称
     */
    private String approverName;
    /**
     * 审核时间
     */
    private Date approvalTime;
    /**
     * 审核状态 0:未审核 1:审核中 2:同意 3:不同意
     */
    private String approvalState;
}

